﻿
namespace VASJ.Common
{
    public class Validation
    {
        public static bool IsInvalidString(string str)
        {
            return string.IsNullOrEmpty(str);
        }

        public static bool IsInvalidLength(string str, int minLength, int maxLength)
        {
            if (IsInvalidString(str)) return true;
            if (str.Length < minLength || str.Length > maxLength) return true;
            return false;
        }
    }
}
